/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: SunlordService
 * Author:   Administrator
 * Date:     2019/6/10 15:49
 * Description: 商洛service
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.sunlord.service;

import OThinker.H3.Entity.Instance.Data.InstanceData;
import com.sunlord.dto.CustFilingX3Data;
import com.sunlord.dto.SunlordResult;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 〈一句话功能简述〉<br>
 * 〈商洛service〉
 *
 * @author Administrator
 * @create 2019/6/10
 * @since 1.0.0
 */
@Service
public interface SunlordService {

    /**
     * 客户建档保存到X3中间表
     * @param custFilingX3Data
     * @return
     */
    public boolean custFilingSaveToX3(CustFilingX3Data custFilingX3Data);


    /**
     *  建档数据变更到 建档数据
     * @param sourceData
     * @param destData
     * @param destSourceFeild
     * @return
     * @throws Exception
     */
    public boolean custModify(InstanceData sourceData, InstanceData destData, Map<String,String> destSourceFeild) ;

    /**
     * x3 中间表反写
     * @param x3Sql
     * @param key
     * @param value
     * @return
     */
    public SunlordResult x3fanxie(String x3Sql,String key,String... value);


    /**
     *  流程数据写入主数据
     * @param sqlList
     * @return
     */
    public boolean ExecuteEngineSql(List<String> sqlList);
}